package com.sdp.irrigation.server.netty.channel;

import java.util.Map;
import java.util.Set;

import com.sdp.irrigation.server.netty.model.ChannelSession;

import io.netty.channel.Channel;
import io.netty.channel.ChannelId;
import io.netty.channel.group.ChannelGroup;

public interface IChannelManager {
	
	boolean initChannel(Channel channel);

	boolean addMap(String telNo, Channel channel);
	
//	boolean remove(String telNo);
	
	Set<Channel> get(String telNo);
	
	ChannelGroup getChannelGroup();
	
	boolean isChannelExist(ChannelId channelId);
	
	ChannelSession getSession(ChannelId channelId);
	
//	ChannelSession getSession(String telNo);
	
//	void setSession(String telNo, ChannelSession session);
	
	int getChannelSize();
	
	void destroy();
	
	Map<String, Map<String, ChannelId>> getChannelIdMap();
}
